package com.blue.utils;

/**
 *
 * 系统自定义异常处理类,针对预期的异常，需要在程序中抛出此类的异常
 */
public class CustomException extends Exception {

    //异常信息
    private String describe;
    private String message;

    public CustomException(String message, String describe) {
        super();
        this.message = message;
        this.describe = describe;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    @Override
    public String toString() {
        return "CustomException{" +
                "describe='" + describe + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}